package com.rsy.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rsy.common.utils.PageUtils;
import com.rsy.product.entity.AttrGroupEntity;
import com.rsy.product.vo.AttrGroupWithAttrsVo;
import com.rsy.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author rsy
 * @email sunlightcs@gmail.com
 * @date 2022-05-01 00:16:03
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);
    //获取分类下所有分组以及属性
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
    //根据3级分类 与spuId 获取spu的规格参数信息 分组，
    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

